;(function(window) {

  var svgSprite = '<svg>' +
    '' +
    '<symbol id="icon-fa-left" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M396.899431 512.032746 756.624718 152.309918 666.693908 62.389956 306.976808 422.112784 306.950201 422.079014 217.027577 511.998977 666.638647 961.610044 756.568434 871.682919Z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-gou" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M505.344 852.928l-434.944-315.392c-17.888-12.96-21.856-37.984-8.896-55.872 12.928-17.888 37.984-21.888 55.872-8.896l367.296 266.368 409.376-619.392c12.192-18.464 36.992-23.456 55.424-11.328 18.432 12.192 23.488 36.992 11.328 55.424L505.344 852.928z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-sousuo" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M945.600419 910.363893 813.748439 681.985486c81.002872-52.735062 134.568858-144.072303 134.568858-247.932766 0-163.28283-132.369773-295.646464-295.65465-295.646464S357.006973 270.76989 357.006973 434.05272s132.369773 295.64851 295.65465 295.64851c42.524512 0 82.943061-8.994861 119.482255-25.157983l132.4895 229.468229c6.531763 11.313673 20.996197 15.187911 32.307823 8.656147C948.255899 936.136883 952.132182 921.671427 945.600419 910.363893zM652.661623 682.399925c-137.15987 0-248.349251-111.189382-248.349251-248.347205s111.189382-248.345158 248.349251-248.345158S901.012921 296.894897 901.012921 434.05272 789.821493 682.399925 652.661623 682.399925z"  ></path>' +
    '' +
    '<path d="M87.041402 209.361285l256.842693 0c7.655354 0 13.861706-6.204305 13.861706-13.861706l0-19.584034c0-7.6574-6.206352-13.861706-13.861706-13.861706L87.041402 162.053839c-7.655354 0-13.861706 6.204305-13.861706 13.861706l0 19.584034C73.179696 203.15698 79.386048 209.361285 87.041402 209.361285z"  ></path>' +
    '' +
    '<path d="M343.888188 528.661472 87.037309 528.661472c-7.653307 0-13.857613 6.204305-13.857613 13.861706l0 19.584034c0 7.65126 6.204305 13.855566 13.857613 13.855566l256.850879 0c7.653307 0 13.857613-6.204305 13.857613-13.855566l0-19.584034C357.7458 534.865777 351.541495 528.661472 343.888188 528.661472z"  ></path>' +
    '' +
    '<path d="M343.888188 871.612311 87.037309 871.612311c-7.653307 0-13.857613 6.204305-13.857613 13.861706l0 19.584034c0 7.655354 6.204305 13.861706 13.857613 13.861706l256.850879 0c7.653307 0 13.857613-6.206352 13.857613-13.861706l0-19.584034C357.7458 877.816616 351.541495 871.612311 343.888188 871.612311z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-xiangxiajiantou" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M512.427742 736.852094 64.973804 289.407366l894.910946 0L512.436952 736.852094 512.427742 736.852094zM512.427742 736.852094"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '</svg>'
  var script = function() {
    var scripts = document.getElementsByTagName('script')
    return scripts[scripts.length - 1]
  }()
  var shouldInjectCss = script.getAttribute("data-injectcss")

  /**
   * document ready
   */
  var ready = function(fn) {
    if (document.addEventListener) {
      if (~["complete", "loaded", "interactive"].indexOf(document.readyState)) {
        setTimeout(fn, 0)
      } else {
        var loadFn = function() {
          document.removeEventListener("DOMContentLoaded", loadFn, false)
          fn()
        }
        document.addEventListener("DOMContentLoaded", loadFn, false)
      }
    } else if (document.attachEvent) {
      IEContentLoaded(window, fn)
    }

    function IEContentLoaded(w, fn) {
      var d = w.document,
        done = false,
        // only fire once
        init = function() {
          if (!done) {
            done = true
            fn()
          }
        }
        // polling for no errors
      var polling = function() {
        try {
          // throws errors until after ondocumentready
          d.documentElement.doScroll('left')
        } catch (e) {
          setTimeout(polling, 50)
          return
        }
        // no errors, fire

        init()
      };

      polling()
        // trying to always fire before onload
      d.onreadystatechange = function() {
        if (d.readyState == 'complete') {
          d.onreadystatechange = null
          init()
        }
      }
    }
  }

  /**
   * Insert el before target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var before = function(el, target) {
    target.parentNode.insertBefore(el, target)
  }

  /**
   * Prepend el to target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var prepend = function(el, target) {
    if (target.firstChild) {
      before(el, target.firstChild)
    } else {
      target.appendChild(el)
    }
  }

  function appendSvg() {
    var div, svg

    div = document.createElement('div')
    div.innerHTML = svgSprite
    svgSprite = null
    svg = div.getElementsByTagName('svg')[0]
    if (svg) {
      svg.setAttribute('aria-hidden', 'true')
      svg.style.position = 'absolute'
      svg.style.width = 0
      svg.style.height = 0
      svg.style.overflow = 'hidden'
      prepend(svg, document.body)
    }
  }

  if (shouldInjectCss && !window.__iconfont__svg__cssinject__) {
    window.__iconfont__svg__cssinject__ = true
    try {
      document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
    } catch (e) {
      console && console.log(e)
    }
  }

  ready(appendSvg)


})(window)